package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "times")//该表的初始数据在创建新用户时就该去创建的
public class Times implements java.io.Serializable {


    private static final long serialVersionUID = 6142782369846114356L;
    @Id
    private ObjectId id; //主键id

    private Long userId; //用户id

    //private Integer sendTimes; //用户可发送次数

    private Integer receiveTimes; //用户可接收次数

    //private Integer sign; //标记该表当天是否被修改过 1更改过，2没有更改过

    private Long updated; //创建时间
}
